{template 'common/header'}

<div class="main">
	<ul class="nav nav-tabs">
        <li class="active">订单统计:实际现金<font style="color:red;">总金额{php echo $sum}元</font>积分余额支付<font style="color:red;">总金额{php echo $sums}元</font></li>
	</ul>

	<div style="padding:15px;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
                    <th style="width:100px;">ID</th>
					<th style="width:100px;">名片ID</th>
					<th style="">天数</th>
                    <th style="">金额</th>
                    <th style="">积分余额</th>
                    <th>类型</th>
                    <th style="">类型ID</th>
					<th>创建时间</th>
					<th style="text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
				<tr>
                    <td>{$row['id']} </td>
					<td>{$row['pay_cardid']} </td>
					
					<td>{$row['days']}</td>
                    <td>{$row['pay_coll']}</td>
                    <td>{$row['yepay_coll']}</td>
                    <td>
                        {if $row['pay_class']=='1'}
                        <span class="label label-info">文字广告</span>
                        {elseif $row['pay_class']==2}
                        <span class="label label-success">通讯录</span>
                        {elseif $row['pay_class']==3}
                        <span class="label label-success">视频权限</span>
                        {elseif $row['pay_class']==6}
                        <span class="label label-success">加粉充值</span>
                        {elseif $row['pay_class']==4}
                        <span class="label label-success">名片顶置</span>
                        {elseif $row['pay_class']==5}
                        <span class="label label-success">发布信息</span>{/if}
                    </td>
                    <td>{$row['wordsid']} </td>
					<td>{php echo date('Y-m-d H:i:s', $row['createtime'])}</td>
					<td>
                        <a onclick="return confirm('您确定要删除吗？');return false;" href="{php echo $this->createWebUrl('pays', array('op'=>'del','id'=>$row['id'],'status'=>1))}"
                           class="btn btn-default btn-sm" title="取消拉黑"><i class="fa fa-unlock"></i>删除
                        </a>
					</td>
				</tr>
				{/loop}
					<tr>
 				<td colspan="7">

                </td>
			</tr>
			</tbody>
		</table>
		{$pager}
	</div>

</div>

{template 'common/footer'}
